package io.renren.service.generator.mysql.data;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

import io.renren.dao.GeneratorDao;
import io.renren.utils.PageUtils;
import io.renren.utils.Query;

@Service
public class GeneratorMysqlDataService {
	
	@Autowired
	private GeneratorDao generatorDao;

	public List<Map<String, String>> queryColumns(String tableName) {
		return generatorDao.queryColumns(tableName);
	}
	
	
	public String GeneratorMysqlData(String tableName,List<Map<String, String>> settings) {
		StringBuffer sb=new StringBuffer();
		sb.append("INSERT INTO "+tableName+"(");
		for (Map<String, String> map:settings) {
			String columnName=map.get("columnName");
			String dataType=map.get("dataType");
			
		}
		
		return null;
		
	}
}
